package com.xj.seven;

public class Demo1 {

    public static void main(String[] args) {
        String str1="abcd  efgd     ";

 /*       System.out.println(str1.length());
        System.out.println(str1.substring(2,3));
         System.out.println(str1.startsWith("f"));
         System.out.println(str1.indexOf("d"));
         System.out.println(str1.indexOf(2));*/

        System.out.println(str1.trim().length());



    }
}
